package com.cyy.dyeing.mapper;

import com.cyy.dyeing.model.Info;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: cyy
 * @Date: 2024/7/26
 */
@Mapper
public interface BaseMapper {
    @Select("select * from t_info where info_type=#{info_type} and info_status=#{info_status}; ")
    List<Info> findInfoList(@Param("info_type") Integer info_type,
                            @Param("info_status") String info_status);


    @Select("select * from t_info where info_status=#{info_status}; ")
    List<Info> findAllInfo(@Param("info_status") String info_status);

}
